package com.soma.game.service;

import java.util.List;

/**
 * @author: ivan.enjoy<haif.enjoy@gmail.com>
 * @date: 17/6/28.
 */
public interface BaseService<Record, Example> {

    Long countByExample(Example example);

    Long deleteByExample(Example example);

    Long deleteByPrimaryKey(Long id);

    Long insert(Record record);

    Long insertSelective(Record record);

    List<Record> selectByExample(Example example);


    Record selectByPrimaryKey(Long id);

    Long updateByExampleSelective(Record record, Example example);

    Long updateByExample(Record record, Example example);

    Long updateByPrimaryKeySelective(Record record);

    Long updateByPrimaryKey(Record record);

    Record load(Long id);

    Record loadActive(Long id);

    void inActive(Long id);

    Long save(Record record);

}
